<template>
    <el-input
    v-model="content"
    @keyup.enter = 'sent'
    style="width: 240px"
    placeholder="Please input"
  />
</template>

<script setup>
import { ref } from 'vue'
let content = ref('')
const emit = defineEmits(['sentContent'])
// 回车添加待办事项
const sent = () => {
    emit('sentContent', content.value)
    content.value = ''
}
</script>